package com.ruoyi.system.dto;

import cn.hutool.core.util.StrUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ApiOrderReceiveAddDto extends ApiDto {
    @NotBlank(message = "商户订单号不能为空")
    @ApiModelProperty(value = "商户订单号", required = true)
    private String merchantOrderNo;

    @ApiModelProperty(value = "转账金额", required = true)
    @NotNull(message = "转账金额不能为空")
    private BigDecimal amount;

    @NotBlank(message = "回调地址不能为空")
    @ApiModelProperty(value = "回调地址", required = true)
    private String notifyUrl;

    @ApiModelProperty(value = "通道编码")
    @NotBlank(message = "通道编码不能为空")
    private String channelCode;

//    @NotBlank(message = "付款人不能为空")
    @ApiModelProperty(value = "付款人", required = true)
    private String payer;

    public static void main(String[] args) {
        String str="二0一四年四月十八日";
        boolean b = StrUtil.containsAny(str, "一","二","三","四","五","六","七","八","九");
        System.out.println(b);
    }

}
